package com.woniuxy.common.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class MarketOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MarketOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCommodityIdIsNull() {
            addCriterion("commodity_id is null");
            return (Criteria) this;
        }

        public Criteria andCommodityIdIsNotNull() {
            addCriterion("commodity_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommodityIdEqualTo(String value) {
            addCriterion("commodity_id =", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotEqualTo(String value) {
            addCriterion("commodity_id <>", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdGreaterThan(String value) {
            addCriterion("commodity_id >", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdGreaterThanOrEqualTo(String value) {
            addCriterion("commodity_id >=", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdLessThan(String value) {
            addCriterion("commodity_id <", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdLessThanOrEqualTo(String value) {
            addCriterion("commodity_id <=", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdLike(String value) {
            addCriterion("commodity_id like", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotLike(String value) {
            addCriterion("commodity_id not like", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdIn(List<String> values) {
            addCriterion("commodity_id in", values, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotIn(List<String> values) {
            addCriterion("commodity_id not in", values, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdBetween(String value1, String value2) {
            addCriterion("commodity_id between", value1, value2, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotBetween(String value1, String value2) {
            addCriterion("commodity_id not between", value1, value2, "commodityId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(Date value) {
            addCriterionForJDBCDate("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(Date value) {
            addCriterionForJDBCDate("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(Date value) {
            addCriterionForJDBCDate("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<Date> values) {
            addCriterionForJDBCDate("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andFreightIsNull() {
            addCriterion("freight is null");
            return (Criteria) this;
        }

        public Criteria andFreightIsNotNull() {
            addCriterion("freight is not null");
            return (Criteria) this;
        }

        public Criteria andFreightEqualTo(Long value) {
            addCriterion("freight =", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotEqualTo(Long value) {
            addCriterion("freight <>", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightGreaterThan(Long value) {
            addCriterion("freight >", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightGreaterThanOrEqualTo(Long value) {
            addCriterion("freight >=", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightLessThan(Long value) {
            addCriterion("freight <", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightLessThanOrEqualTo(Long value) {
            addCriterion("freight <=", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightIn(List<Long> values) {
            addCriterion("freight in", values, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotIn(List<Long> values) {
            addCriterion("freight not in", values, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightBetween(Long value1, Long value2) {
            addCriterion("freight between", value1, value2, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotBetween(Long value1, Long value2) {
            addCriterion("freight not between", value1, value2, "freight");
            return (Criteria) this;
        }

        public Criteria andSumpriceIsNull() {
            addCriterion("sumprice is null");
            return (Criteria) this;
        }

        public Criteria andSumpriceIsNotNull() {
            addCriterion("sumprice is not null");
            return (Criteria) this;
        }

        public Criteria andSumpriceEqualTo(Long value) {
            addCriterion("sumprice =", value, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSumpriceNotEqualTo(Long value) {
            addCriterion("sumprice <>", value, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSumpriceGreaterThan(Long value) {
            addCriterion("sumprice >", value, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSumpriceGreaterThanOrEqualTo(Long value) {
            addCriterion("sumprice >=", value, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSumpriceLessThan(Long value) {
            addCriterion("sumprice <", value, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSumpriceLessThanOrEqualTo(Long value) {
            addCriterion("sumprice <=", value, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSumpriceIn(List<Long> values) {
            addCriterion("sumprice in", values, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSumpriceNotIn(List<Long> values) {
            addCriterion("sumprice not in", values, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSumpriceBetween(Long value1, Long value2) {
            addCriterion("sumprice between", value1, value2, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSumpriceNotBetween(Long value1, Long value2) {
            addCriterion("sumprice not between", value1, value2, "sumprice");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneIsNull() {
            addCriterion("senduser_phone is null");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneIsNotNull() {
            addCriterion("senduser_phone is not null");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneEqualTo(String value) {
            addCriterion("senduser_phone =", value, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneNotEqualTo(String value) {
            addCriterion("senduser_phone <>", value, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneGreaterThan(String value) {
            addCriterion("senduser_phone >", value, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("senduser_phone >=", value, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneLessThan(String value) {
            addCriterion("senduser_phone <", value, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneLessThanOrEqualTo(String value) {
            addCriterion("senduser_phone <=", value, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneLike(String value) {
            addCriterion("senduser_phone like", value, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneNotLike(String value) {
            addCriterion("senduser_phone not like", value, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneIn(List<String> values) {
            addCriterion("senduser_phone in", values, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneNotIn(List<String> values) {
            addCriterion("senduser_phone not in", values, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneBetween(String value1, String value2) {
            addCriterion("senduser_phone between", value1, value2, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserPhoneNotBetween(String value1, String value2) {
            addCriterion("senduser_phone not between", value1, value2, "senduserPhone");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressIsNull() {
            addCriterion("senduser_address is null");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressIsNotNull() {
            addCriterion("senduser_address is not null");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressEqualTo(String value) {
            addCriterion("senduser_address =", value, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressNotEqualTo(String value) {
            addCriterion("senduser_address <>", value, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressGreaterThan(String value) {
            addCriterion("senduser_address >", value, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressGreaterThanOrEqualTo(String value) {
            addCriterion("senduser_address >=", value, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressLessThan(String value) {
            addCriterion("senduser_address <", value, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressLessThanOrEqualTo(String value) {
            addCriterion("senduser_address <=", value, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressLike(String value) {
            addCriterion("senduser_address like", value, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressNotLike(String value) {
            addCriterion("senduser_address not like", value, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressIn(List<String> values) {
            addCriterion("senduser_address in", values, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressNotIn(List<String> values) {
            addCriterion("senduser_address not in", values, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressBetween(String value1, String value2) {
            addCriterion("senduser_address between", value1, value2, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserAddressNotBetween(String value1, String value2) {
            addCriterion("senduser_address not between", value1, value2, "senduserAddress");
            return (Criteria) this;
        }

        public Criteria andSenduserIdIsNull() {
            addCriterion("senduser_id is null");
            return (Criteria) this;
        }

        public Criteria andSenduserIdIsNotNull() {
            addCriterion("senduser_id is not null");
            return (Criteria) this;
        }

        public Criteria andSenduserIdEqualTo(String value) {
            addCriterion("senduser_id =", value, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdNotEqualTo(String value) {
            addCriterion("senduser_id <>", value, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdGreaterThan(String value) {
            addCriterion("senduser_id >", value, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdGreaterThanOrEqualTo(String value) {
            addCriterion("senduser_id >=", value, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdLessThan(String value) {
            addCriterion("senduser_id <", value, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdLessThanOrEqualTo(String value) {
            addCriterion("senduser_id <=", value, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdLike(String value) {
            addCriterion("senduser_id like", value, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdNotLike(String value) {
            addCriterion("senduser_id not like", value, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdIn(List<String> values) {
            addCriterion("senduser_id in", values, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdNotIn(List<String> values) {
            addCriterion("senduser_id not in", values, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdBetween(String value1, String value2) {
            addCriterion("senduser_id between", value1, value2, "senduserId");
            return (Criteria) this;
        }

        public Criteria andSenduserIdNotBetween(String value1, String value2) {
            addCriterion("senduser_id not between", value1, value2, "senduserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneIsNull() {
            addCriterion("buyuser_phone is null");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneIsNotNull() {
            addCriterion("buyuser_phone is not null");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneEqualTo(String value) {
            addCriterion("buyuser_phone =", value, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneNotEqualTo(String value) {
            addCriterion("buyuser_phone <>", value, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneGreaterThan(String value) {
            addCriterion("buyuser_phone >", value, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("buyuser_phone >=", value, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneLessThan(String value) {
            addCriterion("buyuser_phone <", value, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneLessThanOrEqualTo(String value) {
            addCriterion("buyuser_phone <=", value, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneLike(String value) {
            addCriterion("buyuser_phone like", value, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneNotLike(String value) {
            addCriterion("buyuser_phone not like", value, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneIn(List<String> values) {
            addCriterion("buyuser_phone in", values, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneNotIn(List<String> values) {
            addCriterion("buyuser_phone not in", values, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneBetween(String value1, String value2) {
            addCriterion("buyuser_phone between", value1, value2, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserPhoneNotBetween(String value1, String value2) {
            addCriterion("buyuser_phone not between", value1, value2, "buyuserPhone");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressIsNull() {
            addCriterion("buyuser_address is null");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressIsNotNull() {
            addCriterion("buyuser_address is not null");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressEqualTo(String value) {
            addCriterion("buyuser_address =", value, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressNotEqualTo(String value) {
            addCriterion("buyuser_address <>", value, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressGreaterThan(String value) {
            addCriterion("buyuser_address >", value, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressGreaterThanOrEqualTo(String value) {
            addCriterion("buyuser_address >=", value, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressLessThan(String value) {
            addCriterion("buyuser_address <", value, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressLessThanOrEqualTo(String value) {
            addCriterion("buyuser_address <=", value, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressLike(String value) {
            addCriterion("buyuser_address like", value, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressNotLike(String value) {
            addCriterion("buyuser_address not like", value, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressIn(List<String> values) {
            addCriterion("buyuser_address in", values, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressNotIn(List<String> values) {
            addCriterion("buyuser_address not in", values, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressBetween(String value1, String value2) {
            addCriterion("buyuser_address between", value1, value2, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserAddressNotBetween(String value1, String value2) {
            addCriterion("buyuser_address not between", value1, value2, "buyuserAddress");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdIsNull() {
            addCriterion("buyuser_id is null");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdIsNotNull() {
            addCriterion("buyuser_id is not null");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdEqualTo(String value) {
            addCriterion("buyuser_id =", value, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdNotEqualTo(String value) {
            addCriterion("buyuser_id <>", value, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdGreaterThan(String value) {
            addCriterion("buyuser_id >", value, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdGreaterThanOrEqualTo(String value) {
            addCriterion("buyuser_id >=", value, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdLessThan(String value) {
            addCriterion("buyuser_id <", value, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdLessThanOrEqualTo(String value) {
            addCriterion("buyuser_id <=", value, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdLike(String value) {
            addCriterion("buyuser_id like", value, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdNotLike(String value) {
            addCriterion("buyuser_id not like", value, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdIn(List<String> values) {
            addCriterion("buyuser_id in", values, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdNotIn(List<String> values) {
            addCriterion("buyuser_id not in", values, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdBetween(String value1, String value2) {
            addCriterion("buyuser_id between", value1, value2, "buyuserId");
            return (Criteria) this;
        }

        public Criteria andBuyuserIdNotBetween(String value1, String value2) {
            addCriterion("buyuser_id not between", value1, value2, "buyuserId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}